package tetris;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;

public class ScoresSystemTest {

	@Test
	public void testScoresSystem() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetScores() {
		
		ScoresSystem scs = new ScoresSystem();
		try {
			
			scs.loadScores();
		    scs.sortScores();
			
		}
		catch(Exception e){
			e.printStackTrace();
		}
	}

	@Test
	public void testAddScore() {
		ScoresSystem scs = new ScoresSystem();
		try {
			scs.loadScores();
		} catch (Exception e) {
			
			e.printStackTrace();
		}
				
	}

	@Test
	public void testLoadScores() {
		
		// obsluga bledow zaimplementowana w programie
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateScores() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetTopTen() {
		ScoresSystem scs = new ScoresSystem();
		String s = scs.getTopTen();
		
		assertTrue(s.equals(""));
		
		try{
			ArrayList<Score> scores;
		    scores = scs.getScores();
		}
		catch(Exception e){
			e.printStackTrace();
		}
	
	}

}
